package com.bosssoft.user.permission.center.serve.dao.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import common.data.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RoleUser extends BaseEntity {

    @ApiModelProperty("记录的id")
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull
    private Long id;

    @ApiModelProperty("角色id")
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull
    private  Long roleId;

    @ApiModelProperty("用户id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    @ApiModelProperty("租户id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long tenantId;


    @ApiModelProperty("创建人")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long createdBy;


    @ApiModelProperty("更新人")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long updatedBy;





}
